#ifndef __Control_H
#define __Control_H


typedef struct {
    uint8_t SprayPumpStatus;
    uint8_t FanRun;
    uint8_t SmokeSensorState;
    uint8_t Flame_State;
    uint8_t Buzzer;
} DeviceStatus_t;

typedef struct {
    const char* name;
    uint8_t* status;
} DeviceEntry_t;

extern DeviceStatus_t deviceStatus;


void Sensor_Init(void);
void display(DeviceStatus_t device);
void port_Init(void);
void controlDevice(DeviceStatus_t device);
void Data_reporting(DeviceStatus_t device);
void Device_control(char* Device,uint8_t status);
#endif
